***************************************************************************************
*** Replication code for "State Repression and Opposition Survival in Pinochet's Chile"
*** by Consuelo Amat 
*** CPS, January 2023
*********************

*** PAPER ***

** Software and version: STATA 17.0

** Load Data
clear all
cd "~/directory" // fill in
insheet using "Targets_and_Victims_Pinochet_Dictatorship_Chile.csv"

**Install programs
ssc install byhist
ssc install coefplot 
net from https://myweb.uiowa.edu/fboehmke/stata/plotfds
net install clarify

* Figure 3
hist orgid if list_mc_1==0, freq 

* Figure 4
hist victim_ordinal if list_mc_1==0, freq 

* Figure 5
hist victim if list_mc_1==0, discrete by(mir2) percent 

*Figure 6:
estsimp logit victim mir2 dina leader, genname(NEW) 
plotfds, disc(mir2 dina leader) clevel(95) outcome(1) xline(0)


*Michael Tomz, Jason Wittenberg, and Gary King (2001). CLARIFY: Software for Interpreting and Presenting Statistical Results. Version 2.0 Cambridge, MA: Harvard University, June 1. http://gking.harvard.edu 
*Gary King, Michael Tomz, and Jason Wittenberg (2000). "Making the Most of Sta- tistical Analyses: Improving Interpretation and Presentation." American Journal of Political Science 44, no. 2 (April 2000): 347-61.

